import { TenantAppItem, TenantAppListItem, TenantAppPageParams, ViewTenantAppParam } from './model/tenantAppModel';
import { maintenanceHttp } from '/@/utils/http/axios';

enum Api {
  GET_TENANT_APP_LIST = '/tenant-app/getList',
  GET_TENANT_APP_DETAIL = '/tenant-app/detail',
}
export const getTenantAppList = (params: TenantAppPageParams) => {
  // 获取企业应用列表
  return maintenanceHttp.get<TenantAppListItem[]>({
    url: Api.GET_TENANT_APP_LIST,
    params,
  });
};
export const viewTenantApp = (params: ViewTenantAppParam) => {
  // 获取企业应用列表
  return maintenanceHttp.get<TenantAppItem>({
    url: Api.GET_TENANT_APP_DETAIL,
    params,
  });
};
